<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

	<xsl:template match="formConstructor/field[@type='formCalendarUnixTimestamp' or @type='formCalendarDateTime']">
		<tr class="dark">
			<xsl:call-template name="fieldTitle"/>
			<td width="50%">
				<input name="{@name}" value="{@value}" type="text" readonly="1" id="{@name}_field" />
				<img src="{$jsURL}calendar/img.gif"  id="{@name}_img" align="top">
					<xsl:attribute name="onload">Calendar.setup({inputField:'<xsl:value-of select="@name"/>_field',ifFormat:'<xsl:value-of select="@format"/>',button:'<xsl:value-of select="@name"/>_img',showsTime:<xsl:value-of select="@showsTime"/>})</xsl:attribute>
				</img>
			</td>
		</tr>
	</xsl:template>

</xsl:stylesheet>